﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace NewChillers.Styles.Custom
{
    public class URadioButton : RadioButton
    {
        // 附加属性 IconSource 图标源路径
        public static Uri GetIconSource(DependencyObject obj)
        {
            return (Uri)obj.GetValue(IconSourceProperty);
        }

        public static void SetIconSource(DependencyObject obj, Uri value)
        {
            obj.SetValue(IconSourceProperty, value);
        }

        // Using a DependencyProperty as the backing store for IconSource.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IconSourceProperty =
            DependencyProperty.RegisterAttached("IconSource", typeof(Uri), typeof(URadioButton), new PropertyMetadata(null));
    }
}
